package com.hqyj.tmall.service.serviceImpl;

import com.hqyj.mapper.UserMapper;
import com.hqyj.pojo.User;
import com.hqyj.tmall.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public User selectAllByUserId(Integer userId) {
        User user=userMapper.selectAllByUserId(userId);
        return user;
    }
}
